//
//  DataBaseSingleton.h
//  DaHaiDouBan
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 Wang Dahai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Cinema.h"
#import "Activity.h"

@interface DataBaseSingleton : NSObject

+(instancetype)shareDataBase;

-(void)openDB;
//缓存表
-(void)createTable;
-(void)insertTabel:(Cinema *)cinema;
-(void)dropTable;
-(NSMutableArray *)selectAllCinema;
-(Cinema *)selectCinemaWithTitle:(NSString *)cinemaName;
//收藏表
-(void)createCollectionTable;

-(void)insertCollectionTable:(Activity *)activity;

-(void)dropCollectionTable;

-(NSMutableArray *)selectAllCollection;

-(Activity *)selectCollectionWithTitle:(NSString *)title;


@end
